/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.merashehar.db.util;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author binkam
 */
public class DatabaseHandler {
    
    public ResultSet getResultSet(String sql, Connection conn){
        ResultSet rSet = null;         
        try {
            Statement statement = conn.createStatement();
            rSet = statement.executeQuery(sql);
        } catch (SQLException ex) {
            Logger.getLogger(DatabaseHandler.class.getName()).log(Level.SEVERE, null, ex);
        }
        return rSet;
    }
}
